package com.onion.mvc.resolver.builder;

import com.onion.mvc.enums.ParamPolicy;
import com.onion.utils.surface.request.Request;
import org.springframework.core.MethodParameter;
import org.springframework.web.context.request.NativeWebRequest;

public interface RequestParamBuilder {

    /**
     * 参数装配模式
     * @return
     */
    ParamPolicy mode();

    /**
     * 装配参数
     * @param webRequest
     * @return
     */
    Request build(NativeWebRequest webRequest, MethodParameter parameter);

}
